home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 1998 November / IRIX 6.5.2 Base Documentation November 1998.img / usr / share / catman / p_man / cat3 / f90 / models.z / models
Text File  |  1998-10-30  |  10KB  |  300 lines

  1. MODELS(3I)                                            Last changed: 1-15-98
  2.  
  3.  
  4. NNAAMMEE
  5.      MMOODDEELLSS - Describes mathematical representation models for CF90 and
  6.      MIPSpro 7 Fortran 90 compiler intrinsic procedures
  7.  
  8. IIMMPPLLEEMMEENNTTAATTIIOONN
  9.      UNICOS, UNICOS/mk, and IRIX systems
  10.  
  11. SSTTAANNDDAARRDDSS
  12.      Fortran 90
  13.  
  14. DDEESSCCRRIIPPTTIIOONN
  15.      The CF90 and MIPSpro 7 Fortran 90 compilers implement the intrinsic
  16.      procedures according to the representation models described in the
  17.      Fortran 90 standard.  The Fortran 90 standard describes a bit model,
  18.      an integer model, and a real number model.  For more information on
  19.      these models, see the _F_o_r_t_r_a_n _L_a_n_g_u_a_g_e _R_e_f_e_r_e_n_c_e _M_a_n_u_a_l, _V_o_l_u_m_e _2,
  20.      publication SR-3903.
  21.  
  22.      BBiitt mmooddeell
  23.  
  24.      The bit model interprets a nonnegative scalar data object of type
  25.      integer as a sequence of binary digits (bits).  In the model, _w
  26.                                                                     _k
  27.      has a value of 0 or 1.  A bit is defined to be a binary digit _w
  28.      located at position _k of a nonnegative integer scalar object, which is
  29.      based on the following nonnegative integer model:
  30.                                   _k
  31.           _j = the summation of _w 2  as _k goes from 0 to _s-1
  32.                                 _k
  33.           (Refer to the printed MMOODDEELLSS(3I) man page in the _I_n_t_r_i_n_s_i_c
  34.           _P_r_o_c_e_d_u_r_e_s _R_e_f_e_r_e_n_c_e _M_a_n_u_a_l, publication SR-2138, for a graphical
  35.           representation of this summation.)
  36.  
  37.      OObbjjeecctt    DDeeffiinniittiioonn
  38.  
  39.      _j         The integer value.
  40.  
  41.      _s         The number of bits in the model.  The bits are numbered from
  42.                right to left beginning with 0.
  43.  
  44.      _w         A bit is a binary digit, _w, located at position _k.  Either 0
  45.       _k        or 1.
  46.  
  47.      For 64-bit integers, the values in the model are as follows:
  48.  
  49.      OObbjjeecctt    VVaalluuee
  50.  
  51.      _s         64
  52.  
  53.      _k         0 through 63
  54.  
  55.      On UNICOS systems, a 46-bit integer is stored in a 64-bit storage
  56.      container.
  57.  
  58.      For 32-bit integers, the values are as follows:
  59.  
  60.      OObbjjeecctt    VVaalluuee
  61.  
  62.      _s         32
  63.  
  64.      _k         0 through 31
  65.  
  66.      You can use the BBIITT__SSIIZZEE intrinsic function to determine the value of
  67.      _s in the model.
  68.  
  69.      The bit manipulation functions are based upon this bit model.  The
  70.      model deals only with nonnegative integers interpreted through these
  71.      functions and the MMVVBBIITTSS subroutine.  It is not necessarily related to
  72.      the implementation of the integer data type.  It also is independent
  73.      of the binary, octal, and hexadecimal (BBOOZZ) constants described in the
  74.      _F_o_r_t_r_a_n _L_a_n_g_u_a_g_e _R_e_f_e_r_e_n_c_e _M_a_n_u_a_l, _V_o_l_u_m_e _1, publication SR-3902.
  75.  
  76.      IInntteeggeerr mmooddeell
  77.  
  78.      The integer number system model is as follows:
  79.                                       _k-1
  80.           _i = _s * the summation of _w _r    as _k goes from 1 to q
  81.                                     _k
  82.           (Refer to the printed MMOODDEELLSS(3I) man page in the _F_o_r_t_r_a_n _L_a_n_g_u_a_g_e
  83.           _R_e_f_e_r_e_n_c_e _M_a_n_u_a_l, _V_o_l_u_m_e _2, publication SR-3903, for a graphical
  84.           representation of this summation.)
  85.  
  86.      This equation assumes the following definitions:
  87.  
  88.      OObbjjeecctt    DDeeffiinniittiioonn
  89.  
  90.      _i         The integer value.
  91.  
  92.      _s         The sign.  Either +1 or -1.
  93.  
  94.      _r         The radix.  An integer greater than 1.
  95.  
  96.      _q         The number of digits.  An integer greater than 0.
  97.  
  98.      _w         The _kth digit.  An integer 0 <= _w  < _r.
  99.       _k                                         _k
  100.  
  101.      For 64-bit integers, the values in the model are as follows:
  102.  
  103.      OObbjjeecctt    VVaalluuee
  104.  
  105.      _r         2
  106.  
  107.      _q         63
  108.  
  109.      _k         An integer 1 <= _k <= 63, and the sign bit
  110.  
  111.      For 32-bit integers on UNICOS/mk and IRIX systems, the values in the
  112.      model are as follows:
  113.  
  114.      OObbjjeecctt    VVaalluuee
  115.  
  116.      _r         2
  117.  
  118.      _q         31
  119.  
  120.      _k         An integer 1 <= _k <= 31, and the sign bit
  121.  
  122.      For 8-bit integers on IRIX systems, the values in the model are as
  123.      follows:
  124.  
  125.      OObbjjeecctt    VVaalluuee
  126.  
  127.      _r         2
  128.  
  129.      _q         7
  130.  
  131.      _k         An integer 1 <= _k <= 7, and the sign bit
  132.  
  133.      For 16-bit integers on IRIX systems, the values in the model are as
  134.      follows:
  135.  
  136.      OObbjjeecctt    VVaalluuee
  137.  
  138.      _r         2
  139.  
  140.      _q         15
  141.  
  142.      _k         An integer 1 <= _k <= 15, and the sign bit
  143.  
  144.      The values shown for the integer number system model can be retrieved
  145.      through the DDIIGGIITTSS, RRAANNGGEE, and RRAADDIIXX numeric inquiry intrinsic
  146.      functions.  The DDIIGGIITTSS function returns the number of significant
  147.      digits (_q) for an integer in the model, and the RRAANNGGEE function returns
  148.      the decimal number of significant digits.  The RRAADDIIXX function returns
  149.      the base of the model (_r).
  150.  
  151.      The HHUUGGEE numeric inquiry intrinsic function returns the largest
  152.      positive number in the integer number system model.
  153.  
  154.      RReeaall mmooddeell
  155.  
  156.      The real number system model is as follows:
  157.  
  158.           _x = 0
  159.  
  160.      or
  161.  
  162.               _e                       -_k
  163.      _x = _s * _b  * the summation of _f _b  as _k goes from 1 to _p}
  164.                                     _k
  165.  
  166.      (Refer to the printed MMOODDEELLSS(3I) man page in the _F_o_r_t_r_a_n _L_a_n_g_u_a_g_e
  167.      _R_e_f_e_r_e_n_c_e _M_a_n_u_a_l, _V_o_l_u_m_e _2, publication SR-3903, for a graphical
  168.      representation of this summation.)
  169.  
  170.      This equation assumes the following definitions:
  171.  
  172.      OObbjjeecctt    DDeeffiinniittiioonn
  173.  
  174.      _x         The real value.
  175.  
  176.      _s         The sign.  Either +1 or -1.
  177.  
  178.      _b         The base (real radix).  An integer greater than 1.
  179.  
  180.      _e         An integer between some minimum and maximum value.
  181.  
  182.      _p         The number of mantissa digits.  An integer greater than 1.
  183.  
  184.      _f         The _kth digit.  An integer 1 <= _f  < _b.
  185.       _k                                         _k
  186.                _f  can be 0 only if all _f  are 0.
  187.                 1                       _k
  188.  
  189.      For 128-bit real numbers on UNICOS systems, the values in the model
  190.      are as follows:
  191.  
  192.      OObbjjeecctt    VVaalluuee
  193.  
  194.      _b         2
  195.  
  196.      _e         8189
  197.       _m_a_x
  198.      _e         -8188
  199.       _m_i_n
  200.      _p         95
  201.  
  202.      _k         An integer 1 <= _k <= 95
  203.  
  204.      For 128-bit real numbers on IRIX systems, the values in the model are
  205.      as follows:
  206.  
  207.      OObbjjeecctt    VVaalluuee
  208.  
  209.      _b         2
  210.  
  211.      _e         1023
  212.       _m_a_x
  213.      _e         -967
  214.       _m_i_n
  215.      _p         107
  216.  
  217.      _k         An integer 1 <= _k <= 107
  218.  
  219.      For 128-bit real numbers on CRAY T90 systems that support IEEE
  220.      floating-point arithmetic, the values in the model are as follows:
  221.  
  222.      OObbjjeecctt    VVaalluuee
  223.  
  224.      _b         2
  225.  
  226.      _e         16384
  227.       _m_a_x
  228.      _e         -16381
  229.       _m_i_n
  230.      _p         113
  231.  
  232.      _k         An integer 1 <= _k <= 113
  233.  
  234.      For 64-bit real numbers on UNICOS systems, the values in the model are
  235.      as follows:
  236.  
  237.      OObbjjeecctt    VVaalluuee
  238.  
  239.      _b         2
  240.  
  241.      _e         8189
  242.       _m_a_x
  243.      _e         -8188
  244.       _m_i_n
  245.      _p         47
  246.  
  247.      _k         An integer 1 <= _k <= 47
  248.  
  249.      For 64-bit real numbers on IRIX systems, on CRAY T90 systems that
  250.      support IEEE floating-point arithmetic, and on UNICOS/mk systems, the
  251.      values in the model are as follows:
  252.  
  253.      OObbjjeecctt    VVaalluuee
  254.  
  255.      _b         2
  256.  
  257.      _e         1024
  258.       _m_a_x
  259.      _e         -1021
  260.       _m_i_n
  261.      _p         53
  262.  
  263.      _k         An integer 1 <= _k <= 53
  264.  
  265.      For 32-bit real numbers on UNICOS/mk and IRIX systems, the values in
  266.      the model are as follows:
  267.  
  268.      OObbjjeecctt    VVaalluuee
  269.  
  270.      _b         2
  271.  
  272.      _e         128
  273.       _m_a_x
  274.      _e         -125
  275.       _m_i_n
  276.      _p         24
  277.  
  278.      _k         An integer 1 <= _k <= 24
  279.  
  280.      The values shown for the real number system model can be retrieved
  281.      through the RRAADDIIXX, MMAAXXEEXXPPOONNEENNTT, MMIINNEEXXPPOONNEENNTT, DDIIGGIITTSS, PPRREECCIISSIIOONN, and
  282.      RRAANNGGEE numeric inquiry intrinsic functions.
  283.  
  284.      The HHUUGGEE and TTIINNYY numeric inquiry intrinsic functions return the
  285.      largest and the smallest positive number in the real number system
  286.      model.  The EEPPSSIILLOONN function returns a positive real number that is
  287.                 1-_p
  288.      _e_p_s_i_l_o_n = _b   .
  289.  
  290. NNOOTTEESS
  291.      On UNICOS systems, both execution speed and the number of bits used in
  292.      mathematical operations are affected when compiling with
  293.      ff9900 --OO ffaassttiinntt, which is the default setting.  For more information,
  294.      see _C_F_9_0 _C_o_m_m_a_n_d_s _a_n_d _D_i_r_e_c_t_i_v_e_s _R_e_f_e_r_e_n_c_e _M_a_n_u_a_l, publication
  295.      SR-3901.
  296.  
  297. SSEEEE AALLSSOO
  298.      _I_n_t_r_i_n_s_i_c _P_r_o_c_e_d_u_r_e_s _R_e_f_e_r_e_n_c_e _M_a_n_u_a_l, publication SR-2138, for the
  299.      printed version of this man page.
  300.